import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/layout/Home'
import Login from '@/components/Login'
import Admin from '@/components/admin/List'
import Unit from '@/components/unit/List'
import Menu from '@/components/menu/List'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    {
    	path: '/Home' ,
    	name: 'Home' , 
    	component: Home,
      children:[
          { path: '/Home/Admin', name : "Admin" , component: Admin},
          { path: '/Home/Unit', name : "Unit" , component: Unit} ,
          { path: '/Home/Menu' , name : "Menu" , component: Menu}
      ]
    }
  ]
})
